<?php

base::load_app_class('admin_base', 'common');

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/2/18
 * Time: 7:55
 */
class content extends admin_base
{
    public function wek()
    {
//        dd(model('Admin')->all());
        $input = input('');
        dd($_GET);
        return admin_view('@index', ['title' => '测试2', 'demo_time' => time()]);

    }

    //栏目的增删改查 start
    public function columnAdd()
    {

    }

    public function columnDel()
    {

    }

    public function columnUpdate()
    {

    }

    //查询所有栏目
    public function column_all()
    {
        $data = \think\Db::name('admin')->paginate(30, true)->toArray();
        $execute_time = sys_over_time();
        $msg = "<h1 style='text-align: center;margin-top: 5%;'>欢迎使用wekcms内容管理系统!</h1><p style='text-align: center;'>程序执行时间：{$execute_time}秒</p>
    <p style='text-align: center;'><a href=''>安装wekcms程序</a></p>";
        dv($msg);
        dd($data);

    }

    public function columnInfo()
    {

    }
    //栏目的增删改查 end
}